import 'package:json_annotation/json_annotation.dart';

part 'goods_entity.g.dart';

@JsonSerializable()
class GoodsEntity {
  String? brief;
  String? picUrl;
  String? name;
  double? counterPrice;
  int? id;
  bool? isNew;
  double? retailPrice;
  bool? isHot;

  GoodsEntity({
    this.brief,
    this.picUrl,
    this.name,
    this.counterPrice,
    this.id,
    this.isNew,
    this.retailPrice,
    this.isHot,
  });

  factory GoodsEntity.fromJson(Map<String, dynamic> json) => _$GoodsEntityFromJson(json);

  Map<String, dynamic> toJson() => _$GoodsEntityToJson(this);
}